package state.impl;

import state.Context;
import state.State;

/**
 * 运行状态
 */
public class RunningState implements State {
    @Override
    public void handle(Context context) {
        System.out.println("当前处于运行状态");
        // 转换到停止状态
        context.setState(new StopState());
    }
}